package com.hyq.mapper;

import com.hyq.model.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserMapper {

    @Insert("insert t_user (username,password) values (#{username},#{password})")
    public int save(@Param("username") String username, @Param("password") String password);

    public List<Map<String,String>> login(@Param("user")User user);
}
